<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .line1 {
            position: absolute;
            top: 25%;
            width: 100%;
            height: 1px;
            background-color: #222;
        }

        .line2 {
            position: absolute;
            left: 30%;
            width: 1px;
            height: 100%;
            background-color: #222;
        }
    </style>
</head>

<body>
    <div class="line1"></div>
    <div class="line2"></div>
    <script src="./jquery-3.6.0.js"></script>
    <script>
        $(document).on('mousemove', function (e) {
            //(e.pageY, e.clientY, e.offsetY)
            //console.log(e.pageX);
            $('.line1').css('top', e.pageY + 'px')
            $('.line2').css('left', e.pageX + 'px')

        })
    </script>
</body>

</html>